package fileupdownYouhua.service;

import java.io.File;

public class DeleteService {
    public static void deleuteService(String path,String name){
        File file = new File(path + name);
        //无法删除，因为文件被程序占用
        boolean delete = file.delete();
        if (delete){
            System.out.println("删除成功");
        }else {
            System.out.println("删除失败");
        }

    }
}
